package com.sl.au.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
/**
 * 销售信息流转实体表
 * @author sin ser
 *
 */
@Entity
@Table(name = "sl_crm_chanceFlowNode")
public class ChanceFlowNode extends Root{
	
	/**
	 * 流转操作
	 */
	@Column(name = "sFlowOperate")
	private String flowOperate;
	
	/**
	 * 流转起点
	 */
	@Column(name = "sStartNode")
	private String startNode;
	
	/**
	 * 流转终点
	 */
	@Column(name = "sEndNode")
	private String endNode;
	
	/**
	 * 流程原因
	 */
	@Column(name = "sReason",length=2555)
	private String reason;
	/**
	 * 操作人
	 */
	@OneToOne
	@JoinColumn
	private User user;

	/**
	 * chance销售信息
	 */
	@OneToOne
	@JoinColumn
	private Chance chance;
	
	
	
	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getFlowOperate() {
		return flowOperate;
	}

	public void setFlowOperate(String flowOperate) {
		this.flowOperate = flowOperate;
	}

	public String getStartNode() {
		return startNode;
	}

	public void setStartNode(String startNode) {
		this.startNode = startNode;
	}

	public String getEndNode() {
		return endNode;
	}

	public void setEndNode(String endNode) {
		this.endNode = endNode;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Chance getChance() {
		return chance;
	}

	public void setChance(Chance chance) {
		this.chance = chance;
	}
	
}
